import request  from "@/util/request";
export const getdetialDataApi =(isHot:string,isNew:string,order:string) =>{
    return request.get('/goods/goodsList',{
        params:{
            isHot,
            isNew,
            order
        }
    })
}
export const gettopicDataApi = (id:string) => {
    return request.get<any,detialNs.Idetialdata>('/topic/detailaction',{
        params:{
            id
        }
    })
}
export const getgoodsDetailsApi =(id:number)=>{
    return request.get<any,detialNs.Idetailaction>('/goods/detailaction',{
        params:{
            id,
            openId:66
        }
    })
}
export const submitcartApi = (goodsId:string,number:number)=>{
    return request.post('/cart/addCart',{
        goodsId,
        number,
        openId:"66"
    })
}